import App from '../APP'
const _import = require('./import-' + process.env.NODE_ENV)

export default[{
	path:'/',
	component:App,
	children: [
		{path: '', redirect: '/home'},   //地址为空时跳转dialogue页面
		{path: '/home', component:_import('home'), },//对话列表页
		{path: '/list', component: _import('list')},	//电脑登录
		{path: '/detail', component: _import('detail')},	//文件传送助手
		// {path: '/dialogue', component: _import('dialogue/dialogue'), },//对话列表页
		// {
		// 	path: '/singlechat',
		// 	component:  _import('conversation/singlechat'),
		// 	children:[
		// 		{
		// 			path: '/singlechat/chatmessage',
		// 			component: _import('conversation/chatmessage/chatmessage'),
		// 		}
		// 	]

		// },		//单人对话详情页	
		// // {
		// // 	path: '/groupchat',
		// // 	component: _import('conversation/groupchat'),
		// // 	children: [
		// // 		{
		// // 			path: '/groupchat/groupchatmessage',
		// // 			component: _import('conversation/chatmesage/groupchatmessage'),
		// // 		}
		// // 	]
		// // },
		// //群聊
		// {path: '/addressbook', component: _import('addressbook/addressbook'), meta:{ keepAlive: true},
		// 	children: [
		// 		{
		// 			path: '/addressbook/details',
		// 			component: _import('addressbook/details/details'),		//详细资料
		// 			children: [
		// 				{
		// 					path: '/addressbook/details/more',
		// 					component:_import('addressbook/details/more/more'),		//更多
		// 				}
		// 			]
		// 		}
		// 	]

		// },	//通讯录
		// {path: '/find', component: _import('find/find'),
		// 	children:[
		// 		{
		// 			path:'/find/friendcircle',
		// 			component: _import('find/friendcircle/friendcircle'), //朋友圈
		// 		},
		// 		{
		// 			path:'/find/miniapps',
		// 			component:_import('find/miniapps/miniapps'), //小程序
		// 		},
		// 	]
		// },	//发现
		// {path: '/search', component:  _import('search/search')},	//发现
		// {path: '/me', component: _import('me/me'),
		// 	children: [
		// 		{path:'/me/settings',component:  _import('me/settings/settings'),//设置
		// 			children: [
		// 				{
		// 					path:'/me/settings/newmessage',
		// 					component:_import('me/settings/detailset/newmessage'),		
		// 				},	//新消息提醒
		// 				{
		// 					path:'/me/settings/disturbance',
		// 					component:_import('me/settings/detailset/disturbance'),		
		// 				},	//勿扰模式
		// 				{
		// 					path:'/me/settings/chat',
		// 					component: _import('me/settings/detailset/chat'),		
		// 				},	//聊天
		// 				{
		// 					path:'/me/settings/privacy',
		// 					component:_import('me/settings/detailset/privacy'),		
		// 				},	//隐私
		// 				{
		// 					path:'/me/settings/currency',
		// 					component: _import('me/settings/detailset/currency'),		
		// 				},	//通用
		// 				{
		// 					path:'/me/settings/aboutwc',
		// 					component: _import('me/settings/detailset/aboutwc'),		
		// 				},	//关于微信
		// 				{
		// 					path:'/me/settings/help',
		// 					component:_import('me/settings/detailset/help'),		
		// 				},	//帮助与反馈
		// 				{
		// 					path:'/me/settings/login',
		// 					component: _import('me/settings/detailset/login'),		
		// 				},	//退出
		// 			]
		// 		},	
		// 		{
		// 			path:'/me/personaldetails',component : _import('me/personaldetails/personaldetails'),		//个人信息
		// 		},
		// 		{
		// 			path:'/me/cardbag',component :  _import('me/cardbag/cardbag'),		//卡包
		// 		},
		// 		{
		// 			path:'/me/photoalbum',component : _import('me/photoalbum/photoalbum'),		//相册
		// 		},
		// 		{
		// 			path:'/me/collect',component : _import('me/collect/collect'),		//我的收藏
		// 		},
		// 		{
		// 			path:'/me/wallet',component : _import('me/wallet/wallet'),		//钱包
		// 		},
 		// 	]
		// },	//我
		// {path: '/computer', component: _import('computer/computer')},	//电脑登录
		// {path: '/transfer', component:  _import('transfer/transfer')}, //文件传送助手
	]
}]